package com.books.service.impl;

import com.books.entity.EbookCategory;
import com.books.mapper.EbookCategoryMapper;
import com.books.service.EbookCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cd
 * @version 1.0
 * @date 2021/10/6 12:22
 */
@Service
public class EbookCategoryCategoryServiceImpl implements EbookCategoryService {

    @Autowired
    private EbookCategoryMapper ebookCategoryMapper;

    @Override
    public List<EbookCategory> findAll() {
        return ebookCategoryMapper.selectByExample(null);
    }
}
